:root {
    --active-color: #05b;
}
* {
    margin: 0;
    padding: 0;
}
.main {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.icon {
    width: 1em; height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
 }
*::before, *::after {
    box-sizing: border-box;
}
.preview-wrapper *, .preview-wrapper *::before, .preview-wrapper *::after {
    transition: all 0.5s;
}
.actions *{
    transition: all 0.3s;
}
body {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
#code {
    height: 100%;
    padding: 10px;
    overflow-x: auto;
    font-family: 'Consolas';
}
#code::-webkit-scrollbar {
    display: none;
}
.code-wrapper {
    flex: 1;
    height: 50%;
}
.code-wrapper *{
    box-sizing: border-box;
}
.preview-wrapper {
    flex: 1;
    height: 50%;
    background-color: #ffe600;
}
.preview {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wrapper {
    width: 100%;
    height: 200px;
    position: relative;
}
.actions {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
}
.actions button * {
    transition: all 0s;
}
.actions>button {
    color: #666;
    margin: 10px;
    background: #fff;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.actions>button:hover {
    color: var(--active-color);
    border-color: var(--active-color);
}
.actions>button.active {
    color: var(--active-color);
    border-color: var(--active-color);
}
.actions>button:focus {
    outline: none;
}